<?php

	require('header.php');
	require('table_des_matieres.php');

?>

	<fieldset>
		<legend><?php echo $language[$_SESSION['lang']]["Location"]; ?></legend>

		<form method="POST">
		
			<input type="hidden" name="e-mail" value="">	
	
				<table class="addlocationtable">
					<tr>
						<td><label class ="text" for = "date" style = "width: 100%;text-align: left;"><?php echo $language[$_SESSION['lang']]["DateBeginningLocation"]; ?></label> </td>
					
					
						<td><label class = "text" for = "Bannée"><?php echo $language[$_SESSION['lang']]["Year"]; ?></label></td>
								
						<td>
							<select name = "Bannée">
							<?php
							
							$currentYear = date("Y",time());
							
							for ($i = 0; $i <= 2; $i++)
							{
								
								echo '<option value="'.($currentYear+$i).'">'.($currentYear+$i).'</option>';
								
							}
							
							?>
							</select>
						</td>
						<td><label class = "text" for = "Bmois"><?php echo $language[$_SESSION['lang']]["Month"]; ?></label></td>
						<td>
							<select name = "Bmois">
							<?php
							
							for ($i = 1; $i <= 12; $i++)
							{
								
								echo '<option value="'.$i.'">'.$i.'</option>';
								
							}
							
							?>
							</select>
						</td>
						<td><label class = "text" for = "Bjour"><?php echo $language[$_SESSION['lang']]["Day"]; ?></label></td>
						<td>
							<select name = "Bjour">
							<?php
							
							for ($i = 1; $i <= 31; $i++)
							{
								
								echo '<option value="'.$i.'">'.$i.'</option>';
								
							}
							
							?>
							</select>
						</td>
						<td><label class = "text" for = "Bheure"><?php echo $language[$_SESSION['lang']]["Hour"]; ?></label></td>
						<td>
							<select name = "Bheure">
							<?php
							
							for ($i = 0; $i <= 23; $i++)
							{
								
								echo '<option value="'.$i.'">'.$i.'</option>';
								
							}
							
							?>
							</select>
						</td>
						<td>:</td>
						<td>
							<select name = "Bminutes">
							<?php
							
							for ($i = 0; $i <= 59; $i++)
							{
								
								echo '<option value="'.$i.'">'.$i.'</option>';
								
							}
							
							?>
							</select>
						</td>
					</tr>
				
					
			
			</p>
			<p>
			
					<tr>
						<td><label class ="text" for = "date" style = "width: 100%;text-align: left;"><?php echo $language[$_SESSION['lang']]["DateEndingLocation"]; ?></label> </td>
					
					
						<td><label class = "text" for = "Eannée"><?php echo $language[$_SESSION['lang']]["Year"]; ?></label></td>
								
						<td>
							<select name = "Eannée">
							<?php
							
							for ($i = 0; $i <= 2; $i++)
							{
								
								echo '<option value="'.($currentYear+$i).'">'.($currentYear+$i).'</option>';
								
							}
							
							?>
							</select>
						</td>
						<td><label class = "text" for = "Emois"><?php echo $language[$_SESSION['lang']]["Month"]; ?></label></td>
						<td>
							<select name = "Emois">
							<?php
							
							for ($i = 1; $i <= 12; $i++)
							{
								
								echo '<option value="'.$i.'">'.$i.'</option>';
								
							}
							
							?>
							</select>
						</td>
						<td><label class = "text" for = "Ejour"><?php echo $language[$_SESSION['lang']]["Day"]; ?></label></td>
						<td>
							<select name = "Ejour">
							<?php
							
							for ($i = 1; $i <= 31; $i++)
							{
								
								echo '<option value="'.$i.'">'.$i.'</option>';
								
							}
							
							?>
							</select>
						</td>
						<td><label class = "text" for = "Eheure"><?php echo $language[$_SESSION['lang']]["Hour"]; ?></label></td>
						<td>
							<select name = "Eheure">
							<?php
							
							for ($i = 0; $i <= 23; $i++)
							{
								
								echo '<option value="'.$i.'">'.$i.'</option>';
								
							}
							
							?>
							</select>
						</td>
						<td>:</td>
						<td>
							<select name = "Eminutes">
							<?php
							
							for ($i = 0; $i <= 59; $i++)
							{
								
								echo '<option value="'.$i.'">'.$i.'</option>';
								
							}
							
							?>
							</select>
						</td>
					</tr>
				</table>
					
			<p>
					<label class = "text" for = "prix"><?php echo $language[$_SESSION['lang']]["PriceOfLocation"]; ?></label>
					<input class = "text" type = "text" name = "prix"/> €
			</p>
			<p>
					<label class = "text" for = "promo"><?php echo $language[$_SESSION['lang']]["PriceAfterReduction"]; ?></label>
					<input class = "text" type = "text" name = "promo"/> €
			</p>
			
			<p class="envoy">
					<input type="hidden" name="good" value="<?php echo $_POST["good"]; ?>">
					<input id="validSearch" type="submit" name="validLoc" value="<?php echo $language[$_SESSION['lang']]["Valid"]; ?>" />
					<input type="reset" value="<?php echo $language[$_SESSION['lang']]["Erase"]; ?>" />
			</p>
		
		</form>

	</fieldset>

<?php

	require('footer.php');
	
?>
